package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-巡检设备关联表(OperationPollingDevice)表实体类
 *
 * @author yxy
 * @since 2024-10-28 11:32:39
 */
@Data
@ApiModel("运维-巡检设备关联表")
@TableName(value = "tb_operation_polling_device")
public class OperationPollingDevice extends Model<OperationPollingDevice> implements Serializable {
    private static final long serialVersionUID = 877800946546807087L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("巡检id")
    private Long pollingId;

    @ApiModelProperty("项目id")
    private Long itemId;

    @ApiModelProperty("设备id")
    private Long deviceId;

    @ApiModelProperty("设备名称")
    @TableField(exist = false)
    private String deviceName;

    @ApiModelProperty("状态0正常 1异常")
    private Integer status;

    @ApiModelProperty("问题")
    private String question;

    @ApiModelProperty("图片/视频")
    private String file;

    @ApiModelProperty("备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;
}
